<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--主页资讯中心-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>资讯中心</title>
<link href="css/style2.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery.js"></script>
<script language="javascript">
	$(function() {
		//导航切换
		$(".imglist li").click(function() {
			$(".imglist li.selected").removeClass("selected")
			$(this).addClass("selected");
		})
	})
</script>
<script type="text/javascript">
	$(document).ready(function() {
	});
</script>
</head>
<body>
	<div class="rightinfo">
		<div class="tools">
			<ul class="toolbar">
				<li class="click"><a href="News_toAddInformation"
					target="rightFrame"><span> <img src="images/t01.png" /></span>添加</a>
				</li>
			</ul>
		</div>
		<table class="imgtable">
			<thead>
				<tr>
					<th width="100px;">缩略图</th>
					<th width="300px;">标题</th>
					<th>简略信息</th>
					<th width="100px">操作</th>
				</tr>
			</thead>

			<tbody>
				<s:iterator value="pageBean.recordList" status="indexs">
					<tr>
						<td class="imgtd"><img style="width: 80px; height: 60px;"
							src="images/${pictures}" /></td>
						<td><a href="#">${title}</a>
							<p>
								发布时间：
								<s:date format="yyyy-MM-dd HH-mm-ss" name="newgg.putTime" />
							</p></td>
						<td>${newgg.contents}</td>
						<td><a href="News_toEditInformation?id=${id }"
							class="modifytip">编辑</a> &nbsp;&nbsp;&nbsp;&nbsp; <a
							href="News_delectInformation?id=${id }" class="deletetip">删除</a></td>
					</tr>
				</s:iterator>


			</tbody>

		</table>


		<div class="pagin">
			<!-- 基本信息 -->
			<div class="message">
				共<i class="blue"><s:property value="pageBean.recordCount" /> </i>条记录，当前显示第&nbsp;<i
					class="blue"><s:property value="pageBean.currentPage" />&nbsp;</i>页
			</div>
			<ul class="paginList">
			<!-- 左箭头按钮 -->
			<s:if test="pageBean.currentPage-1 >= 1">
				<li class="paginItem"><a
					href="Home_toHomeInformationManagement?pageNum=${pageBean.currentPage-1 }"><span
						class="pagepre"></span></a></li>
			</s:if>
			<s:else>
				<li class="paginItem"><a
					href="#"><span
						class="pagepre"></span></a></li>
			</s:else>
			<!-- 当总共页码大于5 -->
				<c:if test="${pageBean.endPageIndex > 5 }">
					<s:bean name="org.apache.struts2.util.Counter">
						<s:param name="first" value="1" />
						<s:param name="last" value="5" />
						<s:iterator>
							<li class="paginItem"><a
								href="Home_toHomeInformationManagement?pageNum=${pageBean.currentPage }"><s:property/></a></li>
						</s:iterator>
					</s:bean>
					<li class="paginItem more"><a href="#">...</a></li>
					<li class="paginItem"><a
						href="Home_toHomeInformationManagement?pageNum=${pageBean.endPageIndex }">${pageBean.endPageIndex }</a></li>
				</c:if>
				<!-- 当总共页码小于5 -->
				<c:if test="${pageBean.endPageIndex <= 5 }">
					<s:bean name="org.apache.struts2.util.Counter">
						<s:param name="first" value="1" />
						<s:param name="last" value="pageBean.pageCount" />
						<s:iterator>
						<li class="paginItem"><a
								href="Home_toHomeInformationManagement?pageNum=<s:property/>"><s:property/></a></li>
						</s:iterator>
					</s:bean>
				</c:if>
				<!-- 右边按钮 -->
				<s:if test="pageBean.currentPage+1 <= pageBean.pageCount">
				<li class="paginItem"><a
					href="Home_toHomeInformationManagement?pageNum=${pageBean.currentPage+1 }"><span
						class="pagenxt"></span></a></li>
				</s:if>
				<s:else>
				    		<li class="paginItem">
				    			<a href="#"><span class="pagenxt"></span></a>
				    		</li>
				</s:else>
			</ul>
		</div>


		<div class="tip">
			<div class="tiptop">
				<span>提示信息</span><a></a>
			</div>
			<div class="tipinfo">
				<span><img src="images/ticon.png" /></span>
				<div class="tipright">
					<p>是否确认对信息的修改 ？</p>
					<cite>如果是请点击确定按钮 ，否则请点取消。</cite>
				</div>
			</div>
			<div class="tipbtn">
				<input name="" type="button" class="sure" value="确定" />&nbsp; <input
					name="" type="button" class="cancel" value="取消" />
			</div>
		</div>

		<div class="delete">
			<div class="tiptop">
				<span>提示信息</span><a></a>
			</div>
			<div class="tipinfo">
				<span><img src="images/ticon_delete.png" /></span>
				<div class="tipright">
					<p>是否确认删除 ？</p>
					<cite>如果是请点击确定按钮 ，否则请点取消。</cite>
				</div>
			</div>
			<div class="tipbtn">
				<input name="" type="button" class="sure" value="确定" />&nbsp; <input
					name="" type="button" class="cancel" value="取消" />
			</div>
		</div>


	</div>

	<div class="tip">
		<div class="tiptop">
			<span>提示信息</span><a></a>
		</div>

		<div class="tipinfo">
			<span><img src="images/ticon.png" /></span>
			<div class="tipright">
				<p>是否确认对信息的修改 ？</p>
				<cite>如果是请点击确定按钮 ，否则请点取消。</cite>
			</div>
		</div>

		<div class="tipbtn">
			<input name="" type="button" class="sure" value="确定" />&nbsp; <input
				name="" type="button" class="cancel" value="取消" />
		</div>

	</div>

	<script type="text/javascript">
		$('.imgtable tbody tr:odd').addClass('odd');
	</script>
</body>
</html>
